package main

import "fmt"

// 声明接口
type AInterface interface {
	test01()
}
type BInterface interface {
	test02()
	test01()
}

type CInterface interface {
	AInterface
	BInterface
	test03()
}

type Stu struct {
	Name string
}

func (Stu Stu) test01() {
	fmt.Println("Stu test01")
}
func (Stu Stu) test02() {
	fmt.Println("Stu test02")
}
func (Stu Stu) test03() {
	fmt.Println("Stu test03")
}

func main() {
	var stu Stu
	var aInterface AInterface = stu
	aInterface.test01()
	var cInterface CInterface = stu
	cInterface.test02()
	cInterface.test03()
}
